<?php

if($this->mode == 'public') echo '<h2>Public Bookmarks</h2>';
if($this->mode == 'home') echo '<h2>Home</h2>';
if($this->mode == 'user') echo '<h2>Public Bookmarks of '.$this->userDisplayed.'</h2>';
if($this->mode == 'tag') echo '<h2>Public Bookmarks for '.$this->tagDisplayed.'</h2>';


$bookmarks = @$this->stream['bookmarks'];
if(empty($bookmarks)) {
	echo 'pas de bookmark pour le moment';
	return;
} 
?>
<ol class="bookmarks" id="bookmarksList">
<?php

$this->javascriptData('bookmarkListId','bookmarksList');

foreach($bookmarks as $mun=> $bookmark) {

	echo $this->partial('partialbookmark.phtml', array(
		'bookmark' => $bookmark,
		'userId' => $this->userId,
		'mode' => $this->mode
		)
	);
} //end foreach bookmark

?>
</ol>



